﻿/// -----------------------------------------------------------------------
/// (c) 2009 Microsoft Corporation -- All rights reserved
/// This code is licensed under the MS-PL
/// http://www.opensource.org/licenses/ms-pl.html
/// Courtesy of the Open Source Techology Center: http://port25.technet.com
/// -----------------------------------------------------------------------
using System;

namespace gsToolkit {
    public class ConsoleColors :IDisposable {
        readonly ConsoleColor fg;
        readonly ConsoleColor bg;
        public ConsoleColors(ConsoleColor fg, ConsoleColor bg) {
            this.fg = Console.ForegroundColor;
            this.bg = Console.BackgroundColor;
            Console.ForegroundColor = fg;
            Console.BackgroundColor = bg;
        }

        public void Dispose() {
            Console.ForegroundColor = fg;
            Console.BackgroundColor = bg;
        }
    }

    public static class ConsoleExtensions {
    }
}
